﻿@{
    string warn_icon = "wenxingtishi.jpg";
    warn_info[] list = (warn_info[])ViewBag.WarnList;
    if (list.Length > 0)
    {
        warn_icon = list[0].icon_url;
    }
    warn_icon = Url.Content("~/Content/warn/" + warn_icon);
 }
<ul style="text-align:left; margin:3px 1px 1px 1px;padding-left:1px;width:95%;">
    
    <li class="list_style2" style="margin-bottom:2px">
        你当前有未查阅的公事信息&nbsp;<span style="color:red;font-size:10pt">@ViewBag.MailCount</span>&nbsp;条
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        你当前有未查阅的文件信息&nbsp;<span style="color:red;font-size:10pt">@ViewBag.FileCount</span>&nbsp;条
    </li>
    
    <li class="list_style2" style="margin-bottom:2px">
        你当前有未结案的安全事故&nbsp;<span style="color:red;font-size:10pt">@ViewBag.SecCount</span>&nbsp;条
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        你当前有保险到期车辆&nbsp;<span style="color:red;font-size:10pt">@ViewBag.InsureCount</span>&nbsp;条
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        @ViewBag.ReportFlag
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        @ViewBag.StudyFlag
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        @ViewBag.GPSFlag
    </li>
    <li class="list_style2" style="margin-bottom:2px">
        @ViewBag.RunRecordFlag
    </li>
</ul>

@WarnPanel.CreateWarn(@warn_icon,@ViewBag.WarnList)
@*<div class="div-warning" style="width:375px;height:140px;margin-top:5px">
    <table>
        <tr>
            <td style="width:150px">
                <img src="@warn_icon" style="max-width:150px;max-height:140px" alt="" />
            </td>
            <td style="vertical-align:top;text-align:center;text-overflow:ellipsis;">
                @{
                    foreach (warn_info item in ViewBag.WarnList)
                    {
                        HtmlString title = new HtmlString(item.title.Trim());
                        HtmlString content = new HtmlString(item.short_content.Trim());
                        
                        <div style="text-align:left;font-size:12pt;color:blue;margin-top:3px;text-overflow:ellipsis;">
                           
                            <a href="#" title="@title" onclick="javascript:parent.addTab('警示信息','Warning/View/@item.id')">@title</a>
                            :@content
                        </div>
                    }
                }
            </td>
        </tr>
    </table>
    
</div>*@